import { navto, noNull, logs } from "../common/func"
export default (url) => {
	if (!noNull(url)) return logs('请输入退出后要跳转的路径');
	uni.showModal({
		title: "请确认",
		content: "此操作将退出现登录账号",
		success: (res) => {
			if (!res.confirm) return;
			uni.clearStorageSync()
			navto(url, 'clear', 1.5)
		}
	})

}
